<template>
  <div>
    <div class="custom customPost" :style="'color:' + color + ';background:'+ bgColor">
      <div class="customArrow" @click="onClickLeft"><van-icon v-if="isBack" name="arrow-left" /></div>
      <div class="customCont">{{ title }}</div>
      <div class="customR"></div>
    </div>
    <div class="custom"></div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '家有福'
    },
    color: {
      type: String,
      default: '#000000'
    },
    bgColor: {
      type: String,
      default: '#FFF'
    },
    isBack: {
      type: [Boolean, String],
      default: true
    },
    bgImage: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
    }
  },
  computed: {
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.custom{
  width: 750px;
  height: 100px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customPost{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
.customArrow{
  font-size: 40px;
  width: 100px;
  text-align: center;
  line-height: 100px;
}
.customR{
  width: 100px;
  height: 100%;
}
.customCont{
  font-size: 34px;
  font-weight: 600;
}
</style>
